/*
 * Copyright (c) 2022, tyustli
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-03-08     tyustli      first implementation
 */

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
    char str1[100];
    char str2[100];
    int i = 0;
    int j = 0;

    printf("input string1:\r\n");
    scanf("%s", str1);

    printf("input string2:\r\n");
    scanf("%s", str2);

    for (i = strlen(str1), j = 0; i < 99 && j < strlen(str2); i++, j++)
    {
        str1[i] = str2[j];
    }

    str1[i] = '\r';

    printf("output string:%s\r\n", str1);

    return 0;
}

/********************** end of file **************************/
